import Vue from 'vue'
import VueRouter from 'vue-router'
import { basicRoutes } from "./routes"

export function setupRouter() {
  Vue.use(VueRouter)
  return new VueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes: basicRoutes,
  })
}
